using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Trigits
{
    class GridPoint
    {
        private Vector2 loc;
        private int value; // 0 to 5 or 6.
        private bool canMove = true;

        public GridPoint(Vector2 loc)
        {
            this.loc = loc;
            this.value = -1;
        }

        public GridPoint(Vector2 loc, int value)
        {
            this.loc = loc;
            this.value = value;
        }

        public Vector2 getLocation()
        {
            return loc;
        }

        public int getValue()
        {
            return value;
        }
        public void setValue(int value)
        {
            this.value = value;
        }

        public void move(Vector2 distance)
        {
            if(canMove)
                this.loc += distance;
            canMove = false;
        }

        internal void resetMove()
        {
            canMove = true;
        }
    }
}
